package com.bys.ots.config.wx;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Component
public class WxConfig
{
    /**
     * 设置appId
     */
    @Value("${wx.open.config.appId}")
    private String appId;

    /**
     * 设置app secret
     */
    @Value("${wx.open.config.secret}")
    private String secret;

    @Value("${wx.open.config.wxLoginUrl}")
    private String wxLoginUrl;

    @Value("${wx.open.config.wxGetTokenUrl}")
    private String wxGetTokenUrl;

    @Value("${wx.open.config.account}")
    private String account;

    public String getAppId()
    {
        return appId;
    }

    public void setAppId(String appId)
    {
        this.appId = appId;
    }

    public String getSecret()
    {
        return secret;
    }

    public void setSecret(String secret)
    {
        this.secret = secret;
    }

    public String getWxLoginUrl()
    {
        return wxLoginUrl;
    }

    public String getWxGetTokenUrl()
    {
        return wxGetTokenUrl;
    }

    public void setWxGetTokenUrl(String wxGetTokenUrl)
    {
        this.wxGetTokenUrl = wxGetTokenUrl;
    }

    public void setWxLoginUrl(String wxLoginUrl)
    {
        this.wxLoginUrl = wxLoginUrl;
    }

    public String getAccount()
    {
        return account;
    }

    public void setAccount(String account)
    {
        this.account = account;
    }
}
